package cn.cs.mapper;

import cn.cs.pojo.SetPolicy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SetPolicyMapper {

    public SetPolicy getSetPolicyById(@Param(value = "id") String id) throws Exception;

    public List<SetPolicy> getSetPolicyListByMap(Map<String, Object> param) throws Exception;

    public Integer getSetPolicyCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertSetPolicy(SetPolicy setPolicy) throws Exception;

    public Integer updateSetPolicy(SetPolicy setPolicy) throws Exception;

    public Integer deleteSetPolicyById(@Param(value = "id") Long id) throws Exception;

    public Map<String, Object> getSetPolicyByType(String type);

}
